package com.baizhi.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Calendar;

@Configuration
public class BeanConfig {

    // 方法名：推荐返回值首字母小写，代表当前创建对象在工厂中名称
    @Bean
    public Calendar calendar() {
        return Calendar.getInstance();
    }
}
